package com.whw.fy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.whw.fy.config.IgnoreSwaggerParameter;import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;

@ApiModel(value = "com-whw-fy-entity-AttendanceStu")
@Data
public class AttendanceStu {
    /**
     * 学生考勤id
     */
    @ApiModelProperty(value = "学生考勤id")
    private Integer attStuId;

    /**
     * 学生id
     */
    @ApiModelProperty(value = "学生id")
    private Integer studentId;

    /**
     * 所属班级id
     */
    @ApiModelProperty(value = "所属班级id")
    private Integer classId;

    /**
     * 负责考勤老师id
     */
    @ApiModelProperty(value = "负责考勤老师id")
    private Integer teacherId;

    /**
     * 是否出勤 0：未出勤 1：出勤
     */
    @ApiModelProperty(value = "是否出勤 0：未出勤 1：出勤")
    private Integer attendance;

    /**
     * 上课次数
     */
    @ApiModelProperty(value = "上课次数")
    private Integer completionTimes;

    /**
     * 缺勤原因
     */
    @ApiModelProperty(value = "缺勤原因")
    private String reasonAbsence;

    /**
     * 打卡时间
     */
    @ApiModelProperty(value = "打卡时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date postTime;

    /**
     * 异常情况说明
     */
    @ApiModelProperty(value = "异常情况说明")
    private String abnormalSituation;

    /**
     * 异常相关事宜
     */
    @ApiModelProperty(value = "异常相关事宜")
    private String abnormalRelevantMatters;

    /**
     * 异常审批说明
     */
    @ApiModelProperty(value = "异常审批说明")
    private String abnormalAdult;

    /**
     * 是否审批 0:未审批 1:已审批
     */
    @ApiModelProperty(value = "是否审批 0:未审批 1:已审批")
    private Integer abnormalStatus;

    /**
     * 异常考勤人id
     */
    @ApiModelProperty(value = "异常考勤人id")
    private Integer abnormalStaffId;

    /**
     * 家长反馈状态 0 :未反馈 1：已反馈
     */
    @ApiModelProperty(value = "家长反馈状态 0 :未反馈 1：已反馈")
    private Integer attStuParentReplyStatus;

    /**
     * 家长反馈出勤情况0：未出勤 1：出勤 2：迟到
     */
    @ApiModelProperty(value = "家长反馈出勤情况0：未出勤 1：出勤 2：迟到")
    private Integer attStuParentReplyAttendance;
    @IgnoreSwaggerParameter
    @Transient
    private Student student;
    @IgnoreSwaggerParameter
    @Transient
    private Staff staff;
    @IgnoreSwaggerParameter
    @Transient
    private Clazz clazz;
}